package com.kongj18.mrio.service.impl;

import com.kongj18.mrio.dao.ResultExportMapper;
import com.kongj18.mrio.domain.ResultExport;
import com.kongj18.mrio.service.ResultExportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ResultExportServiceImpl implements ResultExportService {
    @Autowired
    private ResultExportMapper mapper;

    @Override
    public List<ResultExport> findByProvinceExportAndItem(String provinceName, String itemName) {
        return mapper.findByProvinceExportAndItem(provinceName, itemName);
    }

    @Override
    public List<ResultExport> findByProvinceExportListAndItem(List<String> provinces, String itemName) {
        return mapper.findByProvinceExportListAndItem(provinces, itemName);
    }

    @Override
    public List<ResultExport> getAll() {
        return mapper.getAll();
    }

    @Override
    public List<ResultExport> findByProvinceImportListAndItem(List<String> provinces, String itemName) {
        return mapper.findByProvinceImportListAndItem(provinces, itemName);
    }
}
